<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org/">
<head>
    <title>详情信息</title>
    <link rel="stylesheet" th:href="@{/static/layui/css/layui.css}">
    <script th:src="@{/static/jquery-2.1.4.js}" type="text/javascript" charset="utf-8"></script>
    <script th:src="@{/static/layui/layui.js}" type="text/javascript" charset="utf-8"></script>
    <script th:src="@{/static/mylayer.js}" type="text/javascript" charset="utf-8"></script>
</head>
<body>
<form class="layui-form" lay-filter="updateFormFilter" action="">
    <!--<input type="hidden" name="id">--> <!--隐藏id-->
    <div class="layui-form-item">
        <label class="layui-form-label">id</label>
        <div class="layui-input-block">
            <input type="text" name="id" lay-verify="required" placeholder="null" autocomplete="off" class="layui-input">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">操作模块</label>
        <div class="layui-input-block">
            <input type="text" name="module" lay-verify="required" placeholder="null" autocomplete="off" class="layui-input">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">操作类型</label>
        <div class="layui-input-block">
            <input type="text" name="logType" lay-verify="required" placeholder="null" autocomplete="off" class="layui-input">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">用户id</label>
        <div class="layui-input-block">
            <input type="text" name="userId" lay-verify="required" placeholder="null" autocomplete="off" class="layui-input">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">用户名</label>
        <div class="layui-input-block">
            <input type="text" name="userName" lay-verify="required" placeholder="null" autocomplete="off" class="layui-input">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">请求方法</label>
        <div class="layui-input-block">
            <input type="text" name="requestParams" lay-verify="required" placeholder="null" autocomplete="off" class="layui-input">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">请求地址</label>
        <div class="layui-input-block">
            <input type="text" name="requestUri" lay-verify="required" placeholder="null" autocomplete="off" class="layui-input">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">响应参数</label>
        <div class="layui-input-block">
            <textarea name="responseParams" placeholder="null" class="layui-textarea"></textarea>
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">开始时间</label>
        <div class="layui-input-block">
            <input type="text" name="createTime" lay-verify="required" placeholder="null" autocomplete="off" class="layui-input">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">更新时间</label>
        <div class="layui-input-block">
            <input type="text" name="updateTime" lay-verify="required" placeholder="null" autocomplete="off" class="layui-input">
        </div>
    </div>
</form>


<script>
    layui.use(['form','upload'],function (){
        var form = layui.form;
        var upload = layui.upload;



        //拿到blog_list.jsp传递过来的参数--编辑回显数据
        var queryString = window.location.search;
        var urlParams = new URLSearchParams(queryString);
        var id = urlParams.get("id");

        $.post(
            '/operLog/selectById',
            {'id':id},
            function (result) {
                //console.log(result);
                if (result.code == 0){

                    form.val('updateFormFilter',result.data);
                }
            },
            'json'
        );
    });
</script>
</body>
</html>
